public class demoSynchrony{
  public static void main(String argv[]){
    setDataThread setTr;
    readDataThread readTr;
    readTr=new readDataThread();
    setTr=new setDataThread();
    readTr.setOtherThread(setTr);
    setTr.setOtherThread(readTr);
    readTr.start(); 
    setTr.start();   
  }
}
